package 测试;

import java.util.*;

public class Main {

	public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		Notepad notepad = new Notepad();
		String st = new String();
		System.out.println("1.增加\t2.删除\t3.修改\t4.查找\t5.遍历");
		int i = s.nextInt();
		while (i != 6) {

			switch (i) {
			case 1:
				notepad.list_Add();
				break;
			case 2:
				notepad.list_Delete();
				break;
			case 3:
				notepad.list_Change();
				break;
			case 4:
				notepad.list_lookup();
				break;
			case 5:
				notepad.list_Ergodic();
				break;
			default:
				System.out.println("没有该选项");
			}
			System.out.println("1.增加\t2.删除\t3.修改\t4.查找\t5.遍历\t6.退出");
			i = s.nextInt();

		}
	}
}
